<template>
  <div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item v-for="(v, i) in bannpic" :key="i">
        <img :src="v.img" alt="" />
      </van-swipe-item>
    </van-swipe>
  </div>
</template>

<script>
export default {
  // created() {
  //   this.$store.dispatch("banlink", { url: "/goodlift/data" });
  // },
  // computed: {
  //   newarr() {
  //     return this.$store.state.homem.newbann;
  //   },
  // },
  props: ["bannpic"],
};
</script>

<style scoped>
div {
  width: 95%;
  height: 2rem;
  margin: 0.03rem 0;
  margin-bottom: 0.11rem;
  /* display: flex;
  flex-direction: column;
  align-items: center; */
}
.my-swipe {
  width: 100%;
  height: 1.9rem;
}
.my-swipe .van-swipe-item img {
  width: 100%;
  height: 2rem;
  border-radius: 0.05rem;
}
/* .my-swipe .van-swipe-item {
  color: #fff;
  font-size: 20px;
  line-height: 2.3rem;
  text-align: center;
  background-color: #39a9ed;
} */
</style>